package com.jbp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jbp.model.UserDailyLuckRecord;
import com.jbp.utils.PageUtils;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 每日用户抽奖统计(UserDailyLuckRecord)表服务接口
 * @author cc
 * @since 2020-08-23 14:32:08
 */
public interface UserDailyLuckRecordService extends IService<UserDailyLuckRecord> {
    PageUtils queryPage(Map<String, Object> params);

    BigDecimal getPayToday(Integer userId);

    double getPayToday(Integer userId, String poolType);

    HashMap<String, Object> getLuckToday(Integer userId, String poolType);

    BigDecimal getAllPay(int userId);

    BigDecimal getAllPayByType(int userId, int price);

    UserDailyLuckRecord getRecordByToday(Integer userId, Integer roomId, String poolType, String type, Integer poolId);

    HashMap<String, BigDecimal> getLuckByType(Integer userId, Integer price);

    List<UserDailyLuckRecord> getRecordDate(Integer price);

    HashMap<String, BigDecimal> getLuckByUser(Integer userId);

    HashMap<String, BigDecimal> getLuckByRoomId(Integer roomId);

    HashMap<String, BigDecimal> getLuckByIp(String ip);

    HashMap<String, BigDecimal> getLuckByDevice(String device);
}